package com.example.service;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.dao.UserDao;
import com.example.entity.User;

@Service
@Transactional
public class UserService {
	@Autowired
	private UserDao userDao;

	public Serializable save(User user) {
		Serializable save = userDao.save(user);
		return save;
	}
}
